package com.hgy.fxui.model;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class PurchaseOrder {
    private Long id;
    private Long supplierId;
    private String supplierName; // 供应商名称（用于显示）
    private Long drugId;
    private String drugName;     // 药品名称（用于显示）
    private String drugSpec;     // 药品规格（用于显示）
    private String orderType;    // PURCHASE/RETURN
    private Integer quantity;    // 正数为进货，负数为退货
    private Double unitPrice;
    private Double totalPrice;
    private String operator;
    private LocalDate operationTime;
    private String note;
}